/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package relojbiometrico;

import SecuGen.FDxSDK.jni.FDxDeviceInfoParam;
import SecuGen.FDxSDK.jni.FDxDeviceName;
import SecuGen.FDxSDK.jni.FDxPortAddr;
import SecuGen.FDxSDK.jni.JFPLib;
import java.awt.Image;
import java.awt.image.BufferedImage;

/**
 *
 * @author InnoVajairo
 */
public class secugen {

    private long deviceName;
    private long devicePort;
    private JFPLib fplib = null;
    private long ret;
    private boolean bLEDOn;
    private byte[] regMin1 = new byte[400];
    private byte[] regMin2 = new byte[400];
    private byte[] vrfMin = new byte[400];
    private Image img;
    private FDxDeviceInfoParam deviceInfo = new FDxDeviceInfoParam();
    private BufferedImage imgRegistration1;
    private BufferedImage imgRegistration2;
    private BufferedImage imgVerification;
    private boolean r1Captured = false;
    private boolean r2Captured = false;
    private boolean v1Captured = false;
    
    
    
    
    
    
}






//    public static void main(String[] args) {
//
//        JFPLib fplib = new JFPLib(FDxDeviceName.CN_FDU02);
//        long err = fplib.closeDevice();
//        err = fplib.openDevice(FDxPortAddr.AUTO_DETECT);
//
//        FDxDeviceInfoParam deviceInfo = new FDxDeviceInfoParam();
//        err = fplib.getDeviceInfo(deviceInfo);
//        System.out.println("GetDeviceInfo returned : [" + err + "]");
//        System.out.println("\tdeviceInfo.DeviceSN: [" + deviceInfo.deviceSN() + "]");
//        System.out.println("\tdeviceInfo.Brightness: [" + deviceInfo.brightness + "]");
//        System.out.println("\tdeviceInfo.ComPort: [" + deviceInfo.comPort + "]");
//        System.out.println("\tdeviceInfo.ComSpeed: [" + deviceInfo.comSpeed + "]");
//        System.out.println("\tdeviceInfo.Contrast: [" + deviceInfo.contrast + "]");
//        System.out.println("\tdeviceInfo.DeviceID: [" + deviceInfo.deviceID + "]");
//        System.out.println("\tdeviceInfo.FWVersion: [" + deviceInfo.FWVersion + "]");
//        System.out.println("\tdeviceInfo.Gain: [" + deviceInfo.gain + "]");
//        System.out.println("\tdeviceInfo.ImageDPI: [" + deviceInfo.imageDPI + "]");
//        System.out.println("\tdeviceInfo.ImageHeight: [" + deviceInfo.imageHeight + "]");
//        System.out.println("\tdeviceInfo.ImageWidth: [" + deviceInfo.imageWidth + "]");
//        
//        byte [] imageBuffer1=new byte[deviceInfo.imageHeight*deviceInfo.imageWidth];
//        
//        byte [] minutae=imageBuffer1;
//        
//        err=fplib.getImage(imageBuffer1);
//        
//        err=fplib.getMinutiae(imageBuffer1,minutae);
//        System.out.println(err);